<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>{label $webName}</title>
	<meta name="keywords" content="{label $KEYWORDS}"/>
	<meta name="description" content="{label $DISCRIPTION}"/>
<script type="text/javascript">
var APP = "{label $smarty.const.__APP__}";
var PUBLIC = "{label $smarty.const.__PUBLIC__}";
</script>	


</head>
<body>
	<!-- top -->
	{label include file="../index/header.html"}
<!-- top 结束-->
	<link rel="stylesheet" href="{label $smarty.const.__PUBLIC__}/Css/common.css" />
	<link rel="stylesheet" href="{label $smarty.const.__PUBLIC__}/Css/question.css" />
	<script type="text/javascript" src="{label $smarty.const.__PUBLIC__}/Js/answer.js"></script>
	<div id='location'>
		<a href="{label $smarty.const.__APP__}?c=list&cid=0">全部分类</a>
			{label section loop=$fatherData name=n}
				&gt;&nbsp;
					{label if $smarty.section.n.last}
						{label $fatherData[n].title}
					{label else}
						<a href="{label $smarty.const.__APP__}?c=list&cid={label $fatherData[n].cid}">{label $fatherData[n].title}</a>
					{label /if}
				&nbsp;&nbsp;
			{label /section}
	</div>

<!--------------------中部-------------------->
	<div id='center-wrap'>
		<div id='center'>
			<div id='left'>
				<div id='answer-info'>
					<!-- 如果没有解决用wait -->
					<div class='ans-state wait'><!--暂无回答内容--></div>
					<div class='answer'>
						<p class='ans-title'>{label $content.content}
							<b class='point'>{label $content.reward}</b>
						</p>
					</div>
					<ul>
						<li><a href="{label $smarty.const.__APP__}?c=member&uid={label $content.uid}">{label $userinfo.username}</a></li>
						<li><i class='level lv1' title='Level 1'></i></li>
						<li>{label $content.time|date_format:"%Y/%m/%e"}</li>
				
					</ul>
					{label if $content.solve == 0 and $content.uid != $smarty.session.uid }
					<div class='ianswer'>
						
						<form action="./index.php?c=show&a=answer" method='POST'>
							<p>我来回答</p>
							<textarea name="content"></textarea>
							<input type="hidden" name='asid' value='{label $smarty.get.asid}'/>
							<input type="submit" value='提交回答' id='anw-sub'/>
						</form>
						
					
						
					</div>
					{label /if}
					{label if $content.solve == 0 and $content.uid == $smarty.session.uid}					
					<div class='ans-state wait'><!--暂无回答内容--></div>
					{label /if}
					{label if $content.solve == 1 }
					<!-- 满意回答 -->
					<div class='ans-state right'><!--暂无回答内容--></div>
					<div class='ans-right'>
						<p class='title'><i></i>满意回答<span></span></p>
						<p class='ans-cons'>{label $lastContent.content}</p>
						<dl>
							<dt>
								<a href="{label $smarty.const.__APP__}?c=member&uid={label $lastContent.uid}"><img src="{label $smarty.const.__ROOT__}/upload/ThumImg/{label $searchUserInfo.face}" width='48' height='48'/></a>
							</dt>
							<dd>
								<a href="{label $smarty.const.__APP__}?c=member&uid={label $lastContent.uid}">{label $lastContentUserInfo.username}</a>
							</dd>
							<dd><i class='level lv1'></i></dd>
							<dd>{label $probability}</dd>
						</dl>
					</div>
					<!-- 满意回答 -->
					{label /if}
				</div>

				<div id='all-answer'>
					<div class='ans-icon'></div>
					<p class='title'>共 <strong>{label $anserCount}</strong> 条回答</p>
					<ul>
						
						{label foreach from= $anserContent item = v}
						<li>
							<div class='face'>
								<a href="{label $smarty.const.__APP__}?c=member&uid={label$v.uid}">
									<img src="{label $smarty.const.__ROOT__}/upload/ThumImg/{label $searchUserInfo.face}" width='48' height='48'/>
								</a>
							</div>
							<div class='cons blue'>
								<p><span class="pcontent">{label $v.content}</span><span style='color:#888;font-size:12px'>&nbsp;&nbsp;({label $v.time|date_format:"%Y/%m/%e"})</span></p>
							</div>
							
							{label if $content.solve == 0 && $smarty.session.uid ==  $content.uid }
								<a href="javascript:;"  name = '{label $v.anid}' uid='{label $v.uid}' asid='{label $v.asid}'  class='adopt-btn'>采纳</a>
							{label /if}
						</li>
						{label /foreach}
						
					</ul>
					<div class='page'>
						<a href="">1</a>
						<a href="">2</a>
						<a href="">3</a>
						<a href="">4</a>
					</div>
				</div>
				<div id='other-ask'>
					<p class='title'>待解决的相关问题</p>
					<table>
						{label foreach from=$randContent item=randContent}
						<tr>
							<td class='t1'><a href="{label $smarty.const.__APP__}?c=show&cid={label $randContent.cid}&asid={label $randContent.asid}">{label $randContent.content}</a></td>
							<td>{label $randContent.answer}&nbsp;回答</td>
							<td>{label $randContent.time}</td>
						</tr>
						{label /foreach}
					</table>
				</div>
			</div>
		<!-- 右侧 -->
{label include file='../index/rightbar.html}
<!-- ---右侧结束---- -->
			
		</div>

	</div>
	
<!--------------------中部结束-------------------->

<!-- 底部 -->
	<div id='bottom'>
		<p>{label $COPY}</p>
		<p>{label $RECORD}</p>
	</div>
<!--[if IE 6]>
    <script type="text/javascript" src="{label $smarty.const.__PUBLIC__}/Js/iepng.js"></script>
    <script type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    </script>
<![endif]-->
</body>
</html>
<!-- 底部结束 -->